package ren.steve.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import ren.steve.model.system.bean.SystemMenu;
import ren.steve.model.system.vo.SystemMenuQueryVo;
import ren.steve.system.mapper.SystemMenuMapper;
import ren.steve.system.service.SystemMenuService;

import java.util.List;

/**
 * @Author: LiuGuoJia
 * @Description:
 * @Date: Created in 2024/1/18 20:04
 */
@Service
public class SystemMenuServiceImpl extends ServiceImpl<SystemMenuMapper, SystemMenu> implements SystemMenuService {
  @Override
  public IPage<SystemMenu> select(Page<SystemMenu> pagination, @Param("vo") SystemMenuQueryVo vo) {
    return baseMapper.select(pagination, vo);
  }

  @Override
  public List<SystemMenu> selectModuleAll(@Param("vo") SystemMenuQueryVo vo) {
    return baseMapper.selectModuleAll(vo);
  }

  @Override
  public List<SystemMenu> selectChildModule(@Param("vo") SystemMenuQueryVo vo) {
    return baseMapper.selectChildModule(vo);
  }

}
